enum Status {
  normal = 0,
  published = 1,
  deleted = 2,
}

const enum Type {
  unPaid = "unPaid",
  delivered = "delivered",
}

const post = {
  status: Status.normal,
  type: Type.delivered,
}

post.type = Type.unPaid;
console.log(post.status === Status.normal);

console.log(post.status === Status.normal);


// 通过模块作用域做一个隔离哦，防止上面的变量名重复
export {};